package com.myself.controller;

import com.myself.model.User;
import com.myself.sender.SenderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author W.S.
 * @version v4.0.0
 * @description
 * @date Created in 2018/8/22 16:21
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private SenderService senderService;

    @RequestMapping("/send/{msg}")
    public void testSend(@PathVariable("msg") String msg){
        senderService.sendRabbitMsg(msg);
    }
}
